projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c171a2
)
net: phy: delay only if reset handler is registered
author
Jörg Krause
<
[email protected]
>
Wed, 15 Jul 2015 13:18:22 +0000
(15:18 +0200)
committer
Joe Hershberger
<
[email protected]
>
Tue, 11 Aug 2015 18:48:25 +0000
(13:48 -0500)
With commit
e3a77218a256edbe201112a39beeed8adcabae3f
the MII bus is only
reset if a reset handler is registered. If there is no reset handler there
is no need to wait for a device to come out of the reset.
Signed-off-by: Jörg Krause <
[email protected]
>
drivers/net/phy/phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phy.c
b/drivers/net/phy/phy.c
index 865abab9a1c44fb2423998b1ec1ba64974a0be26..65c731afb64ef7ab9eaa7247dab14feea872a989 100644
(file)
--- a/
drivers/net/phy/phy.c
+++ b/
drivers/net/phy/phy.c
@@
-763,11
+763,13
@@
struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
phy_interface_t interface)
{
/* Reset the bus */
- if (bus->reset)
+ if (bus->reset)
{
bus->reset(bus);
- /* Wait 15ms to make sure the PHY has come out of hard reset */
- udelay(15000);
+ /* Wait 15ms to make sure the PHY has come out of hard reset */
+ udelay(15000);
+ }
+
return get_phy_device_by_mask(bus, phy_mask, interface);
}